/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.plugins.addExternal('fmath_formula', 'plugins/fmath_formula/', 'plugin.js');


CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	
       // Declare the additional plugin 
        config.extraPlugins = 'fmath_formula';
        config.skin = 'office2003';   
        config.removePlugins = 'save'; 
        config.pasteFromWordRemoveStyles = true;  
        config.pasteFromWordCleanupFile=false;
        config.pasteFromWordNumberedHeadingToList=true;
        config.pasteFromWordRemoveFontStyles=false;
        config.pasteFromWordPromptCleanup=false;
        //config.filebrowserUploadUrl = "http://localhost:8080/knowledge-web/component/imageUpload-upload.action?Type=File";
        config.filebrowserImageUploadUrl = "http://stkm.genomics.cn:80/component/imageUpload-upload.action?Type=Image";
        //config.filebrowserFlashUploadUrl = "http://localhost:8080/knowledge-web/component/imageUpload-upload.action?Type=Flash";
       // Add the button to toolbar
		config.toolbar = [ 
	         ['Source','-','Save','NewPage','Preview','-','Templates'],
	         ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
	         ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	         ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
	         '/',
	         ['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','fmath_formula'],
	          ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	          ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	          ['Link','Unlink','Anchor'],
	         ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
	         '/',
	          ['Styles','Format','Font','FontSize'],
	          ['TextColor','BGColor']
	    ];
		
		config.font_names   ='宋体;黑体;幼圆;楷体;隶书;仿宋;华文彩云;方正舒体;微软雅黑;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
	
};
